<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class kota_model extends CI_Model {

    function __construct() {
        parent::__construct();
    }

    function getDataKota(){
        $query = $this->db->query("select p.nama_propinsi,k.nama_kota,k.id_kota from mt_kota k join mt_propinsi p on k.id_propinsi = p.id_propinsi order by p.prioritas desc");
        $result = $query->result();
        return $result;
    }
}

?>
